<?php
	// Informations de connexion à la bd.
	$host = "localhost";
	$port = 5432;
	$dbname = "demo";
	$user = "postgres";
	$pass = "pass";
	
	// Nom du thésaurus dans la base de donnée
	$thesaurus = "Culture";
	
	// Fonctions utiles
	include('fonctions.php');
?>

<!DOCTYPE html>
<html>
<head>
	<link rel="stylesheet" href="design.css">
	<!-- Ajout de designvisu.css pour le design consacré au canvas -->
	<?php if(isset ($_GET['page']) && $_GET['page'] == "visu")
		echo "<link rel=\"stylesheet\" href=\"designvisu.css\">"; ?>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<script type="text/javascript" src="scripts.js"></script>
	<script type="text/javascript" src="jquery.js"></script>
</head>
<body>
	<header>
		<a href="index.php"><h1>Thésaurus Cultures</h1></a>
		<form method="GET" action="search.php">
			<input type="text" name="search" />
		</form>
	</header>
	
	<div id="contenu">
	
	
	<?php
	if(isset($_GET['page']))
	{
		if($_GET['page'] == "visu")
			include('visu.php');
		
		elseif($_GET['page'] == "concept")
		{
			include('menu.php');
			include('concept.php');
		}
		else
		{
			include('menu.php');
			include('accueil.php');
		}
	}
	else
	{
		include('menu.php');
		include('accueil.php');
	}
	?>
	
	</div>
</body>
</html>
